package cn.seaboot.openapi;

import cn.seaboot.commons.core.FastJsonUtils;
import cn.seaboot.postman.root.Postman;

/**
 * @author Mr.css
 * @version 2022-10-21 9:52
 */
public class Example {

    public static void main(String[] args) {
        Environment environment = new Environment();
        environment.setOriginalUrl("http://localhost:8081/sea");

        Postman postman = PostmanBuilder.create()
                .setEnvironment(environment)
                .setExclusive("cn.seaboot.admin.*.web.page;org.springframework")
                .searchApi(AppInfoCtrl.class)
                .build();

        System.out.println(FastJsonUtils.toJSONString(postman));
    }
}
